The class that gets the URL information
Using this class, you can obtain the following information about the URL:
-Host
-Path
-Statuscode (eg. 404,200, ...)
-HTTP Version
-Server
-Content Type
-Date
-the whole header string of the URL
Copy
Ask, this line of code: file_put_contents (& quot; url & quot;, $ url. & quot ;###& quot;, FILE_APPEND); where did the submitted items be saved? Line 2 of the Code: file_put_contents (url, & nbsp; $ url. ###, & nbsp; FILE_APPEND); this line of code
class to get URL informationUsing this class, you can get the following information for the URL:-Host-Path-Statuscode (eg. 404,200, ...)-HTTP Version-Server-Content Type-Date-the whole header string of the URL Copy CodeThe code is as follows:/***
First, PHP gets the URL of the current page:
Copy the Code code as follows:
Get the current script URLfunction Getcururl (){if (!empty ($_server["Request_uri")){$scriptName = $_server["Request_uri"];$nowurl = $scriptName;}Else{$scriptName =
Ask, this line of code: file_put_contents (url, $ url. ###, FILE_APPEND); where is the submitted content saved? Line 2 of the code: file_put_contents ("url", $ url. "###", FILE_APPEND); where is the submitted append saved?
Is it appended to the
Custom URL Scheme Full guidePosted: 2014-05-22 10:59 read: 20600One of the coolest features of the Iphone/ios SDK is that the app "binds" itself to a custom URL scheme that launches the app from a browser or other app."" Reading deviceCustom URL
How does the PHP tutorial CMS support Chinese path? Phpcms Chinese URL How to set it?
I'm going to come down here.
First, in the phpcms include directory, there are global.func.php files.
The function createhtml ($file) is
Ask, this line of code: file_put_contents ("url", $url. " # # # ", File_append), where did the submitted items be saved?
of the Code
Line 33rd:: file_put_contents ("url", $url. " # # # ", file_append); What is APPEND saved to?
Is it appended to the
Line 33rd of the Code:: file_put_contents ("url", $url. " # # # ", file_append); What is APPEND saved to?
Is it appended to the source code file sign.php? I tested it, and after I submitted some content, there was no change in the sign.php file in
Introduction to view and URL configuration experimentsIn the previous chapter, we described how to create a Django project and start the Django Development server. In this chapter you will learn the basics of creating dynamic Web pages with Django.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.